Pod::Spec.new do |s|
    s.name             = 'ZLCocoaKit'
    s.version          = '1.0.0'
    s.summary          = 'A short description of ZLCocoaKit.'
    
    s.description      = <<-DESC
            TODO: Add long description of the pod here.
        DESC
    
    s.homepage         = 'https://gitee.com/ZLKits/ZLCocoaKit'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'itzhaolei' => 'itzhaolei@foxmail.com' }
    s.source           = { :git => 'https://gitee.com/ZLKits/ZLCocoaKit.git', :tag => s.version }
    
    s.ios.deployment_target = '13.0'
    
    #s.source_files = 'ZLCocoaKit/Classes/**/*'
    
    # s.resource_bundles = {
    #   'ZLCocoaKit' => ['ZLCocoaKit/Assets/*.png']
    # }
    
    # s.public_header_files = 'Pod/Classes/**/*.h'
    # s.frameworks = 'UIKit', 'MapKit'
    # s.dependency 'AFNetworking', '~> 2.3'
    
    
    s.subspec 'StackView' do |ss|
        ss.ios.deployment_target = '13.0'
        ss.source_files = 'ZLCocoaKit/Classes/StackView/*.{h,m}'
        ss.dependency 'ReactiveObjC', '3.1.1' # 响应式
    end
    
    s.subspec 'PushToast' do |ss|
        ss.ios.deployment_target = '13.0'
        ss.source_files = 'ZLCocoaKit/Classes/PushToast/*.{h,m}'
        ss.dependency "ZLCocoaKit/StackView"
        ss.dependency 'Masonry', '1.1.0' # 自动布局
    end

end
